package com.aijk.ehm.sys.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.sys.model.SysLog;
import com.aijk.ehm.sys.model.qo.LogQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 日志方法接口
 *
 */
public interface LogApi {

    PageInfo<SysLog> getPage(LogQo logQo)throws ErrorCodeException;

    SysLog get(Long pkId) throws ErrorCodeException;

    List<SysLog> get(LogQo logQo) throws ErrorCodeException;

    int save(SysLog record)  throws ErrorCodeException;

    int saveGeneratedKeys(SysLog record)  throws ErrorCodeException;

    boolean insertLog(SysLog record)  throws ErrorCodeException;

    int updateByPrimary(SysLog record)  throws ErrorCodeException;

    int delete(Long pkId)  throws ErrorCodeException;
}
